package ctrLag;


import modelLag.Customer;
import modelLag.Employee;
import modelLag.Order;
import modelLag.OrderCon;
import modelLag.SaleCon;


public class SaleCtr 
{
	private SaleCon sCon;
	private SaleCtr sCtr;
	private ProductCtr pCtr;
	
	

public SaleCtr() {
      
	sCon = SaleCon.getInstance();
	sCtr = new SaleCtr();
	pCtr = new ProductCtr();
	
	}

public Sale createSale(Employee employee) {
	Sale s = new Sale(employee);
    return s;
	
}

public double addProduct(Sale s) {
	   sCon.addSale(s);
	   return s.getTotal();

}

public double getTotal(Sale s) {
	return s.getTotal();
	
}

public Sale endSale(Sale s) {
	s.setStatus(1);
	sCon.addSale(0);
	return s;
}








































}
